<!DOCTYPE html>
<!--
  Copyright 2016 Google Inc.

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  THE SOFTWARE.
-->
<html>
  <head>
    <meta charset="utf-8">
    <title>Color Theming - Material Components Catalog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/png" href="/images/logo_components_color_2x_web_48dp.png">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Rubik:300,400,500">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <script src="/ready.js"></script>
    <script src="/uri.js"></script>
    <script src="/theme-loader.js"></script>
    <noscript>
      <link rel="stylesheet" href="/assets/theme/theme-baseline.css">
    </noscript>
  </head>
  <body class="mdc-typography">
    <header class="mdc-toolbar mdc-toolbar--fixed demo-toolbar">
      <div class="mdc-toolbar__row">
        <section class="mdc-toolbar__section mdc-toolbar__section--align-start">
          <button class="material-icons mdc-toolbar__menu-icon demo-drawer-toggle mdc-icon-button" data-mdc-ripple-is-unbounded>menu</button>
          <span class="mdc-toolbar__title catalog-title">Color Theming</span>
        </section>
        <section class="mdc-toolbar__section mdc-toolbar__section--align-end mdc-toolbar__section--shrink-to-fit" role="toolbar">
          <div class="mdc-menu-surface--anchor">
            <button id="theme-color-action" class="mdc-toolbar__icon mdc-icon-button" title="Change theme colors" data-theme="baseline" data-mdc-ripple-is-unbounded>
              <i class="demo-theme-color-radio">
                <span class="demo-theme-color-radio__inner"></span>
              </i>
            </button>
            <div class="mdc-menu mdc-menu-surface demo-theme-menu" style="position: absolute;" tabindex="-1" id="theme-color-menu">
              <ul class="mdc-list demo-theme-list"
                  role="menu"
                  aria-hidden="true"
                  style="list-style-type: none"><!-- Inline style needed to fix IE 11 rendering bug (see https://stackoverflow.com/a/23717689/467582) -->
                <li class="mdc-list-item demo-theme-menu__list-item--selected" role="menuitem" tabindex="0" data-theme="baseline">
                  <div class="mdc-list-item__graphic">
                    <i class="demo-theme-color-radio">
                      <span class="demo-theme-color-radio__inner"></span>
                    </i>
                  </div>
                  Baseline (default)
                </li>
                <li class="mdc-list-item" role="menuitem" tabindex="0" data-theme="dark">
                  <div class="mdc-list-item__graphic">
                    <i class="demo-theme-color-radio">
                      <span class="demo-theme-color-radio__inner"></span>
                    </i>
                  </div>
                  Dark background (custom)
                </li>
                <li class="mdc-list-item" role="menuitem" tabindex="0" data-theme="black">
                  <div class="mdc-list-item__graphic">
                    <i class="demo-theme-color-radio">
                      <span class="demo-theme-color-radio__inner"></span>
                    </i>
                  </div>
                  Black primary (custom)
                </li>
                <li class="mdc-list-item" role="menuitem" tabindex="0" data-theme="shrine">
                  <div class="mdc-list-item__graphic">
                    <i class="demo-theme-color-radio">
                      <span class="demo-theme-color-radio__inner"></span>
                    </i>
                  </div>
                  Shrine (custom)
                </li>
              </ul>
            </div>
          </div>
        </section>
      </div>
      <div class="mdc-toolbar__row demo-toolbar-progress-row">
        <div role="progressbar"
             class="mdc-linear-progress mdc-linear-progress--indeterminate demo-toolbar-progress-bar"
             id="demo-toolbar-progress-bar">
          <div class="mdc-linear-progress__buffering-dots"></div>
          <div class="mdc-linear-progress__buffer"></div>
          <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar">
            <span class="mdc-linear-progress__bar-inner"></span>
          </div>
          <div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">
            <span class="mdc-linear-progress__bar-inner"></span>
          </div>
        </div>
      </div>
    </header>

    <aside class="mdc-drawer mdc-drawer--modal">
      <div class="mdc-drawer__header">
        <h3 class="mdc-drawer__title">Title here</h3>
        <h6 class="mdc-drawer__subtitle">Subtitle here</h6>
      </div>
      <div class="mdc-drawer__content">
        <nav class="mdc-list">
          <a class="mdc-list-item mdc-list-item--activated" href="#" tabindex="0">
            <i class="material-icons mdc-list-item__graphic" aria-hidden="true">inbox</i>
            <span class="mdc-list-item__label">Inbox</span>
          </a>
          <a class="mdc-list-item" href="#">
            <i class="material-icons mdc-list-item__graphic" aria-hidden="true">star</i>
            <span class="mdc-list-item__label">Star</span>
          </a>
          <a class="mdc-list-item" href="#">
            <i class="material-icons mdc-list-item__graphic" aria-hidden="true">send</i>
            <span class="mdc-list-item__label">Sent Mail</span>
          </a>
          <a class="mdc-list-item" href="#">
            <i class="material-icons mdc-list-item__graphic" aria-hidden="true">drafts</i>
            <span class="mdc-list-item__label">Drafts</span>
          </a>

          <hr class="mdc-list-divider">
          <h6 class="mdc-list-group__subheader">Labels</h6>
          <a class="mdc-list-item" href="#">
            <i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i>
            <span class="mdc-list-item__label">Family</span>
          </a>
          <a class="mdc-list-item" href="#">
            <i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i>
            <span class="mdc-list-item__label">Friends</span>
          </a>
          <a class="mdc-list-item" href="#">
            <i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i>
            <span class="mdc-list-item__label">Work</span>
          </a>

          <hr class="mdc-list-divider">
          <a class="mdc-list-item" href="#">
            <i class="material-icons mdc-list-item__graphic" aria-hidden="true">settings</i>
            <span class="mdc-list-item__label">Settings</span>
          </a>
          <a class="mdc-list-item" href="#">
            <i class="material-icons mdc-list-item__graphic" aria-hidden="true">announcement</i>
            <span class="mdc-list-item__label">Help & feedback</span>
          </a>
        </nav>
      </div>
    </aside>
    <div class="mdc-drawer-scrim"></div>

    <main class="mdc-toolbar-fixed-adjust demo-main">
      <h2 class="mdc-typography--headline4">
        Baseline Colors
      </h2>

      <section class="demo-component-section">
        <i id="classes" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          CSS Classes
          <a href="#classes" class="demo-component-section__permalink" title="Permalink to the theme demo for baseline CSS classes">#</a>
        </h3>

        <div class="demo-theme-color-section">
          <div class="demo-theme-color-section__row">
            <fieldset class="demo-fieldset--color">
              <legend class="mdc-typography--subtitle1">Theme colors as text</legend>

              <div class="demo-theme-color-group">
                <div class="demo-theme-color-swatches">
                  <div class="demo-theme-color-swatch demo-theme-color-swatch--elevated mdc-theme--primary mdc-typography--body2">Primary</div>
                </div>
                <div class="demo-theme-color-swatches">
                  <div class="demo-theme-color-swatch demo-theme-color-swatch--elevated mdc-theme--secondary mdc-typography--body2">Secondary</div>
                </div>
              </div>
            </fieldset>

            <fieldset class="demo-fieldset--color">
              <legend class="mdc-typography--subtitle1">Theme colors as background</legend>

              <div class="demo-theme-color-group">
                <div class="demo-theme-color-swatches">
                  <div class="demo-theme-color-swatch mdc-theme--primary-bg mdc-theme--on-primary">Primary</div>
                </div>
                <div class="demo-theme-color-swatches">
                  <div class="demo-theme-color-swatch mdc-theme--secondary-bg mdc-theme--on-secondary">Secondary</div>
                </div>
                <div class="demo-theme-color-swatches">
                  <div class="demo-theme-color-swatch demo-theme-color-swatch--elevated mdc-theme--background mdc-theme--text-primary-on-background">Background</div>
                </div>
              </div>
            </fieldset>
          </div>
        </div>

        <div class="demo-theme-color-section">
          <div class="demo-theme-color-section_row">
            <fieldset class="demo-fieldset--color">
              <legend class="mdc-typography--subtitle1">Text on background</legend>

              <div class="demo-theme-color-group">
                <div class="demo-theme-text-row mdc-theme--background mdc-typography--body2">
                  <span class="demo-theme-text-style mdc-theme--text-primary-on-background">Primary</span>
                  <span class="demo-theme-text-style mdc-theme--text-secondary-on-background">Secondary</span>
                  <span class="demo-theme-text-style mdc-theme--text-hint-on-background">Hint</span>
                  <span class="demo-theme-text-style mdc-theme--text-disabled-on-background">Disabled</span>
                  <span class="demo-theme-text-style mdc-theme--text-icon-on-background material-icons">favorite</span>
                </div>
              </div>
            </fieldset>
          </div>

          <div class="demo-theme-color-section__row">
            <fieldset class="demo-fieldset--color">
              <legend class="mdc-typography--subtitle1">Text on primary</legend>

              <div class="demo-theme-color-group">
                <div class="demo-theme-text-row mdc-theme--primary-bg mdc-typography--body2">
                  <span class="demo-theme-text-style mdc-theme--on-primary">Text</span>
                  <span class="demo-theme-text-style mdc-theme--on-primary material-icons">favorite</span>
                </div>
              </div>
            </fieldset>

            <fieldset class="demo-fieldset--color">
              <legend class="mdc-typography--subtitle1">Text on secondary</legend>

              <div class="demo-theme-color-group">
                <div class="demo-theme-text-row mdc-theme--secondary-bg mdc-typography--body2">
                  <span class="demo-theme-text-style mdc-theme--on-secondary">Text</span>
                  <span class="demo-theme-text-style mdc-theme--on-secondary material-icons">favorite</span>
                </div>
              </div>
            </fieldset>
          </div>

          <div class="demo-theme-color-section__row">
            <fieldset class="demo-fieldset--color">
              <legend class="mdc-typography--subtitle1">Text on user-defined light background</legend>

              <div class="demo-theme-color-group">
                <div class="demo-theme-text-row demo-theme-bg--custom-light mdc-typography--body2">
                  <span class="demo-theme-text-style mdc-theme--text-primary-on-light">Primary</span>
                  <span class="demo-theme-text-style mdc-theme--text-secondary-on-light">Secondary</span>
                  <span class="demo-theme-text-style mdc-theme--text-hint-on-light">Hint</span>
                  <span class="demo-theme-text-style mdc-theme--text-disabled-on-light">Disabled</span>
                  <span class="demo-theme-text-style mdc-theme--text-icon-on-light material-icons">favorite</span>
                </div>
              </div>
            </fieldset>

            <fieldset class="demo-fieldset--color">
              <legend class="mdc-typography--subtitle1">Text on user-defined dark background</legend>

              <div class="demo-theme-color-group">
                <div class="demo-theme-text-row demo-theme-bg--custom-dark mdc-typography--body2">
                  <span class="demo-theme-text-style mdc-theme--text-primary-on-dark">Primary</span>
                  <span class="demo-theme-text-style mdc-theme--text-secondary-on-dark">Secondary</span>
                  <span class="demo-theme-text-style mdc-theme--text-hint-on-dark">Hint</span>
                  <span class="demo-theme-text-style mdc-theme--text-disabled-on-dark">Disabled</span>
                  <span class="demo-theme-text-style mdc-theme--text-icon-on-dark material-icons">favorite</span>
                </div>
              </div>
            </fieldset>
          </div>
        </div>
      </section>

      <h2 class="mdc-typography--headline4">
        Baseline Component Stickersheet
      </h2>

      <section class="demo-component-section">
        <i id="button" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Button
          <a href="#button" class="demo-component-section__permalink" title="Permalink to the theme demo for the button component">#</a>
        </h3>

        <fieldset class="demo-fieldset--button">
          <legend class="mdc-typography--subtitle1">Enabled</legend>

          <div>
            <button class="mdc-button">
              Text
            </button>
            <button class="mdc-button mdc-button--raised">
              Raised
            </button>
            <button class="mdc-button mdc-button--unelevated">
              Unelevated
            </button>
            <button class="mdc-button mdc-button--outlined">
              Outlined
            </button>
          </div>
        </fieldset>

        <fieldset class="demo-fieldset--button" disabled>
          <legend class="mdc-typography--subtitle1">Disabled</legend>

          <div>
            <button class="mdc-button">
              Text
            </button>
            <button class="mdc-button mdc-button--raised">
              Raised
            </button>
            <button class="mdc-button mdc-button--unelevated">
              Unelevated
            </button>
            <button class="mdc-button mdc-button--outlined">
              Outlined
            </button>
          </div>
        </fieldset>
      </section>

      <section class="demo-component-section">
        <i id="card" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Card
          <a href="#card" class="demo-component-section__permalink" title="Permalink to the theme demo for the card component">#</a>
        </h3>

        <div class="demo-card-wrapper">
          <div class="mdc-card">
            <div class="mdc-card__media mdc-card__media--16-9 demo-card__media"></div>
            <div class="mdc-card__actions">
              <div class="mdc-card__action-buttons">
                <button class="mdc-button mdc-card__action mdc-card__action--button">Read</button>
                <button class="mdc-button mdc-card__action mdc-card__action--button">Bookmark</button>
              </div>
              <div class="mdc-card__action-icons">
                <button class="mdc-icon-button mdc-card__action mdc-card__action--icon"
                   aria-pressed="false"
                   aria-label="Add to favorites"
                   title="Add to favorites" data-demo-toggle>
                  <i class="material-icons mdc-icon-button__icon mdc-icon-button__icon--on">favorite</i>
                  <i class="material-icons mdc-icon-button__icon">favorite_border</i>
                </button>
                <button class="mdc-icon-button material-icons mdc-card__action mdc-card__action--icon"
                   data-mdc-ripple-is-unbounded
                   title="Share">share</button>
                <button class="mdc-icon-button material-icons mdc-card__action mdc-card__action--icon"
                   data-mdc-ripple-is-unbounded
                   title="More options">more_vert</button>
              </div>
            </div>
          </div>
        </div>
      </section>

      <section class="demo-component-section">
        <i id="checkbox" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Checkbox
          <a href="#checkbox" class="demo-component-section__permalink" title="Permalink to the theme demo for the checkbox component">#</a>
        </h3>

        <div class="demo-checkbox-row">
          <div class="mdc-form-field demo-checkbox-wrapper">
            <div class="mdc-checkbox demo-checkbox">
              <input type="checkbox"
                     id="enabled-checkbox"
                     class="mdc-checkbox__native-control"/>
              <div class="mdc-checkbox__background">
                <svg class="mdc-checkbox__checkmark"
                     viewBox="0 0 24 24">
                  <path class="mdc-checkbox__checkmark-path"
                        fill="none"
                        d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
                </svg>
                <div class="mdc-checkbox__mixedmark"></div>
              </div>
            </div>
            <label for="enabled-checkbox" id="enabled-checkbox-label">Enabled</label>
          </div>

          <div class="mdc-form-field demo-checkbox-wrapper">
            <div class="mdc-checkbox demo-checkbox">
              <input type="checkbox"
                     id="indeterminate-checkbox"
                     class="mdc-checkbox__native-control"/>
              <div class="mdc-checkbox__background">
                <svg class="mdc-checkbox__checkmark"
                     viewBox="0 0 24 24">
                  <path class="mdc-checkbox__checkmark-path"
                        fill="none"
                        d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
                </svg>
                <div class="mdc-checkbox__mixedmark"></div>
              </div>
            </div>
            <label for="indeterminate-checkbox" id="indeterminate-checkbox-label">Indeterminate</label>
          </div>

          <div class="mdc-form-field demo-checkbox-wrapper">
            <div class="mdc-checkbox mdc-checkbox--disabled demo-checkbox">
              <input type="checkbox"
                     id="disabled-checkbox"
                     class="mdc-checkbox__native-control"
                     disabled />
              <div class="mdc-checkbox__background">
                <svg class="mdc-checkbox__checkmark"
                     viewBox="0 0 24 24">
                  <path class="mdc-checkbox__checkmark-path"
                        fill="none"
                        d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
                </svg>
                <div class="mdc-checkbox__mixedmark"></div>
              </div>
            </div>
            <label for="disabled-checkbox" id="disabled-checkbox-label">Disabled</label>
          </div>

          <button type="button" class="mdc-button mdc-button--outlined demo-checkbox-toggle-button" id="checkbox-toggle--indeterminate">
            <span>Toggle <code class="demo-button__code">indeterminate</code></span>
          </button>
          <button type="button" class="mdc-button mdc-button--outlined demo-checkbox-toggle-button" id="checkbox-toggle--align-end">
            <span>Toggle <code class="demo-button__code">--align-end</code></span>
          </button>
        </div>
      </section>

      <section class="demo-component-section">
        <i id="dialog" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Dialog
          <a href="#dialog" class="demo-component-section__permalink" title="Permalink to the theme demo for the dialog component">#</a>
        </h3>

        <aside class="mdc-dialog mdc-dialog--open demo-dialog">
          <div class="mdc-dialog__surface">
            <header class="mdc-dialog__header">
              <h3 id="mdc-dialog-default-label" class="mdc-dialog__header__title">
                Fire photon torpedoes?
              </h3>
            </header>
            <section id="mdc-dialog-default-description" class="mdc-dialog__body">
              Shields at 60% and falling, captain.
            </section>
            <footer class="mdc-dialog__footer">
              <button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--cancel">Belay that order</button>
              <button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept">Make it so!</button>
            </footer>
          </div>
        </aside>
      </section>

      <section class="demo-component-section">
        <i id="drawer" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Drawer
          <a href="#drawer" class="demo-component-section__permalink" title="Permalink to the theme demo for the drawer component">#</a>
        </h3>

        <p class="mdc-typography--body1">Tap the menu icon (<i class="material-icons demo-drawer-toggle">menu</i>) in the toolbar at the top of the page to open the drawer.</p>
      </section>

      <section class="demo-component-section">
        <i id="fab" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Floating Action Button (FAB)
          <a href="#fab" class="demo-component-section__permalink" title="Permalink to the theme demo for the floating action button component">#</a>
        </h3>

        <fieldset>
          <div class="demo-fab-row">
            <figure class="demo-fab-tile">
              <figcaption>
                <div class="demo-fab-tile__title">Default</div>
                <div class="demo-fab-tile__snippet mdc-typography--body1">Secondary theme color</div>
              </figcaption>
              <button class="mdc-fab demo-fab" aria-label="Favorite">
                <span class="mdc-fab__icon material-icons">favorite_border</span>
              </button>
            </figure>
            <figure class="demo-fab-tile">
              <figcaption>
                <div class="demo-fab-tile__title">Mini</div>
                <div class="demo-fab-tile__snippet mdc-typography--body1"><code>mdc-fab--mini</code></div>
              </figcaption>
              <button class="mdc-fab mdc-fab--mini demo-fab" aria-label="Favorite">
                <span class="mdc-fab__icon material-icons">favorite_border</span>
              </button>
            </figure>
          </div>
        </fieldset>
      </section>

      <section class="demo-component-section">
        <i id="icon-toggle" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Icon Toggle
          <a href="#icon-toggle" class="demo-component-section__permalink" title="Permalink to the theme demo for the icon toggle component">#</a>
        </h3>

        <div class="demo-icon-toggle-row">
          <div class="mdc-elevation--z2 demo-icon-toggle-tile">
            <h4 class="mdc-typography--subtitle1">Enabled</h4>

            <button class="mdc-icon-button"
               aria-label="Add to favorites"
               aria-pressed="false" data-demo-toggle>
              <i class="material-icons mdc-icon-button__icon mdc-icon-button__icon--on">favorite</i>
              <i class="material-icons mdc-icon-button__icon">favorite_border</i></button>
          </div>

          <div class="mdc-elevation--z2 demo-icon-toggle-tile">
            <h4 class="mdc-typography--subtitle1">Disabled</h4>

            <button class="mdc-icon-button"
               aria-label="Add to favorites"
               aria-pressed="false"
               disabled data-demo-toggle>
              <i class="material-icons mdc-icon-button__icon mdc-icon-button__icon--on">favorite</i>
              <i class="material-icons mdc-icon-button__icon">favorite_border</i>
            </button>
          </div>
        </div>
      </section>

      <section class="demo-component-section">
        <i id="linear-progress" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Linear Progress
          <a href="#linear-progress" class="demo-component-section__permalink" title="Permalink to the theme demo for the linear progress component">#</a>
        </h3>

        <figure class="demo-linear-progress-row">
          <figcaption class="mdc-typography--subtitle1">Indeterminate</figcaption>
          <div role="progressbar" class="mdc-linear-progress mdc-linear-progress--indeterminate">
            <div class="mdc-linear-progress__buffering-dots"></div>
            <div class="mdc-linear-progress__buffer"></div>
            <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar">
              <span class="mdc-linear-progress__bar-inner"></span>
            </div>
            <div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">
              <span class="mdc-linear-progress__bar-inner"></span>
            </div>
          </div>
        </figure>

        <figure class="demo-linear-progress-row">
          <figcaption class="mdc-typography--subtitle1">Buffer</figcaption>
          <div role="progressbar" class="mdc-linear-progress" data-buffer="true">
            <div class="mdc-linear-progress__buffering-dots"></div>
            <div class="mdc-linear-progress__buffer"></div>
            <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar">
              <span class="mdc-linear-progress__bar-inner"></span>
            </div>
            <div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">
              <span class="mdc-linear-progress__bar-inner"></span>
            </div>
          </div>
        </figure>
      </section>

      <section class="demo-component-section">
        <i id="radio" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Radio Button
          <a href="#radio" class="demo-component-section__permalink" title="Permalink to the theme demo for the radio button component">#</a>
        </h3>

        <figure class="demo-radio-group">
          <div class="mdc-form-field demo-radio-form-field">
            <div class="mdc-radio demo-radio">
              <input class="mdc-radio__native-control" type="radio" id="demo-radio-1" checked name="demo-radio-group-1">
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label id="demo-radio-1-label" for="demo-radio-1">Enabled 1</label>
          </div>
          <div class="mdc-form-field demo-radio-form-field">
            <div class="mdc-radio demo-radio">
              <input class="mdc-radio__native-control" type="radio" id="demo-radio-2" name="demo-radio-group-1">
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label id="demo-radio-2-label" for="demo-radio-2">Enabled 2</label>
          </div>
        </figure>

        <figure class="demo-radio-group">
          <div class="mdc-form-field demo-radio-form-field">
            <div class="mdc-radio mdc-radio--disabled demo-radio">
              <input class="mdc-radio__native-control" type="radio" id="demo-radio-7" disabled checked name="demo-radio-group-4">
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label id="demo-radio-7-label" for="demo-radio-7">Disabled 1</label>
          </div>
          <div class="mdc-form-field demo-radio-form-field">
            <div class="mdc-radio mdc-radio--disabled demo-radio">
              <input class="mdc-radio__native-control" type="radio" id="demo-radio-8" disabled name="demo-radio-group-4">
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label id="demo-radio-8-label" for="demo-radio-8">Disabled 2</label>
          </div>
        </figure>
      </section>

      <section class="demo-component-section">
        <i id="select" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Select
          <a href="#select" class="demo-component-section__permalink" title="Permalink to the theme demo for the select component">#</a>
        </h3>

        <div class="mdc-select">
          <select class="mdc-select__native-control" id="basic-select">
            <option value="grains" selected>
              Bread, Cereal, Rice, and Pasta
            </option>
            <option value="vegetables" disabled>
              Vegetables
            </option>
            <option value="fruit">
              Fruit
            </option>
            <option value="dairy">
              Milk, Yogurt, and Cheese
            </option>
            <option value="meat">
              Meat, Poultry, Fish, Dry Beans, Eggs, and Nuts
            </option>
            <option value="fats">
              Fats, Oils, and Sweets
            </option>
          </select>
          <label class="mdc-floating-label mdc-floating-label--float-above" for="basic-select">Pick a Food Group</label>
          <div class="mdc-line-ripple"></div>
        </div>
      </section>

      <section class="demo-component-section">
        <i id="slider" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Slider
          <a href="#slider" class="demo-component-section__permalink" title="Permalink to the theme demo for the slider component">#</a>
        </h3>

        <div class="mdc-slider mdc-slider--discrete mdc-slider--display-markers" tabindex="0" role="slider"
             aria-valuemin="0" aria-valuemax="100" aria-valuenow="30"
             aria-labelledby="example-ds-marker-label">
          <div class="mdc-slider__track-container">
            <div class="mdc-slider__track"></div>
            <div class="mdc-slider__track-marker-container"></div>
          </div>
          <div class="mdc-slider__thumb-container">
            <div class="mdc-slider__pin">
              <span class="mdc-slider__pin-value-marker">30</span>
            </div>
            <svg class="mdc-slider__thumb" width="21" height="21">
              <circle cx="10.5" cy="10.5" r="7.875"></circle>
            </svg>
            <div class="mdc-slider__focus-ring"></div>
          </div>
        </div>
      </section>

      <section class="demo-component-section">
        <i id="switch" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Switch
          <a href="#switch" class="demo-component-section__permalink" title="Permalink to the theme demo for the switch component">#</a>
        </h3>

        <fieldset class="demo-switch-wrapper">
          <div class="mdc-switch mdc-switch--checked">
            <div class="mdc-switch__track"></div>
            <div class="mdc-switch__thumb-underlay">
              <div class="mdc-switch__thumb">
                <input type="checkbox" id="basic-switch" class="mdc-switch__native-control" role="switch" checked>
              </div>
            </div>
          </div>
          <label for="basic-switch" class="mdc-switch-label">off/on</label>
        </fieldset>
        <fieldset class="demo-switch-wrapper" disabled>
          <div class="mdc-switch mdc-switch--checked mdc-switch--disabled">
            <div class="mdc-switch__track"></div>
            <div class="mdc-switch__thumb-underlay">
              <div class="mdc-switch__thumb">
                <input type="checkbox" id="disabled-switch" class="mdc-switch__native-control" role="switch" checked>
              </div>
            </div>
          </div>
          <label for="disabled-switch" class="mdc-switch-label">disabled</label>
        </fieldset>
      </section>

      <section class="demo-component-section">
        <i id="tabs" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Tabs
          <a href="#tabs" class="demo-component-section__permalink" title="Permalink to the theme demo for the tabs component">#</a>
        </h3>

        <figure class="demo-figure--tab-bar">
          <figcaption>Default</figcaption>

          <nav class="mdc-tab-bar mdc-tab-bar--icons-with-text demo-tab-bar">
            <a class="mdc-tab mdc-tab--with-icon-and-text mdc-tab--active demo-tab" href="javascript:">
              <i class="material-icons mdc-tab__icon" aria-hidden="true">phone</i>
              <span class="mdc-tab__icon-text">Recents</span>
            </a>
            <a class="mdc-tab mdc-tab--with-icon-and-text demo-tab" href="javascript:">
              <i class="material-icons mdc-tab__icon" aria-hidden="true">favorite</i>
              <span class="mdc-tab__icon-text">Favorites</span>
            </a>
            <a class="mdc-tab mdc-tab--with-icon-and-text demo-tab" href="javascript:">
              <i class="material-icons mdc-tab__icon" aria-hidden="true">person_pin</i>
              <span class="mdc-tab__icon-text">Nearby</span>
            </a>
            <span class="mdc-tab-bar__indicator"></span>
          </nav>
        </figure>

        <figure class="demo-figure--tab-bar">
          <figcaption>Primary Color</figcaption>

          <nav class="mdc-tab-bar mdc-tab-bar--icons-with-text mdc-tab-bar--indicator-primary demo-tab-bar">
            <a class="mdc-tab mdc-tab--with-icon-and-text mdc-tab--active demo-tab" href="javascript:">
              <i class="material-icons mdc-tab__icon" aria-hidden="true">phone</i>
              <span class="mdc-tab__icon-text">Recents</span>
            </a>
            <a class="mdc-tab mdc-tab--with-icon-and-text demo-tab" href="javascript:">
              <i class="material-icons mdc-tab__icon" aria-hidden="true">favorite</i>
              <span class="mdc-tab__icon-text">Favorites</span>
            </a>
            <a class="mdc-tab mdc-tab--with-icon-and-text demo-tab" href="javascript:">
              <i class="material-icons mdc-tab__icon" aria-hidden="true">person_pin</i>
              <span class="mdc-tab__icon-text">Nearby</span>
            </a>
            <span class="mdc-tab-bar__indicator"></span>
          </nav>
        </figure>
        <figure class="demo-figure--tab-bar">
          <figcaption>Secondary Color</figcaption>

          <nav class="mdc-tab-bar mdc-tab-bar--icons-with-text mdc-tab-bar--indicator-accent demo-tab-bar">
            <a class="mdc-tab mdc-tab--with-icon-and-text mdc-tab--active demo-tab" href="javascript:">
              <i class="material-icons mdc-tab__icon" aria-hidden="true">phone</i>
              <span class="mdc-tab__icon-text">Recents</span>
            </a>
            <a class="mdc-tab mdc-tab--with-icon-and-text demo-tab" href="javascript:">
              <i class="material-icons mdc-tab__icon" aria-hidden="true">favorite</i>
              <span class="mdc-tab__icon-text">Favorites</span>
            </a>
            <a class="mdc-tab mdc-tab--with-icon-and-text demo-tab" href="javascript:">
              <i class="material-icons mdc-tab__icon" aria-hidden="true">person_pin</i>
              <span class="mdc-tab__icon-text">Nearby</span>
            </a>
            <span class="mdc-tab-bar__indicator"></span>
          </nav>
        </figure>
      </section>

      <section class="demo-component-section">
        <i id="text-field" class="demo-anchor-with-toolbar-offset"></i>
        <h3 class="mdc-typography--headline5 demo-component-section__heading">
          Text Field
          <a href="#text-field" class="demo-component-section__permalink" title="Permalink to the theme demo for the text field component">#</a>
        </h3>

        <figure class="demo-text-field-wrapper">
          <div class="mdc-text-field demo-text-field">
            <input type="text" class="mdc-text-field__input"
                   id="demo-text-field-default"
                   aria-controls="demo-text-field-default-helper-text"
                   aria-describedby="demo-text-field-default-helper-text"
                   autocomplete="email">
            <label for="demo-text-field-default" class="mdc-floating-label">Name (optional)</label>
            <div class="mdc-line-ripple"></div>
          </div>
          <p class="mdc-text-field-helper-text" id="demo-text-field-default-helper-text"
             aria-hidden="true">
            Helper text
          </p>
        </figure>
        <figure class="demo-text-field-wrapper">
          <div class="mdc-text-field demo-text-field">
            <input type="email" class="mdc-text-field__input"
                   id="demo-text-field-required"
                   aria-controls="demo-text-field-required-helper-text"
                   aria-describedby="demo-text-field-required-helper-text"
                   autocomplete="email"
                   required>
            <label for="demo-text-field-required" class="mdc-floating-label">Email (required)</label>
            <div class="mdc-line-ripple"></div>
          </div>
          <p class="mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg" id="demo-text-field-required-helper-text">
            A valid email address is required
          </p>
        </figure>
        <figure class="demo-text-field-wrapper">
          <div class="mdc-text-field mdc-text-field--outlined demo-text-field">
            <input type="text" class="mdc-text-field__input"
                   id="demo-text-field"
                   aria-controls="demo-text-field-helper-text"
                   aria-describedby="demo-text-field-helper-text">
            <label for="demo-text-field" class="mdc-floating-label">Outlined Text Field</label>
            <div class="mdc-notched-outline">
              <svg>
                <path class="mdc-notched-outline__path"/>
              </svg>
            </div>
            <div class="mdc-notched-outline__idle"></div>
          </div>
          <p class="mdc-text-field-helper-text" id="demo-text-field-helper-text"
             aria-hidden="true">
            Helper text
          </p>
        </figure>
      </section>
    </main>

    <script src="/assets/material-components-web.js" async></script>
    <script src="/assets/theme/index.js" async></script>
    <script>
      demoReady(function() {
        /*
         * Button
         */

        [].forEach.call(document.querySelectorAll('.mdc-button'), function(button) {
          mdc.ripple.MDCRipple.attachTo(button);
        });

        /*
         * Checkbox
         */

        document.querySelector('#indeterminate-checkbox').indeterminate = true;

        document.querySelector('#checkbox-toggle--indeterminate').addEventListener('click', function() {
          [].forEach.call(
            document.querySelectorAll('.demo-checkbox-wrapper .mdc-checkbox__native-control'),
            function(checkbox) {
              checkbox.indeterminate = !checkbox.indeterminate;
            });
        });

        document.querySelector('#checkbox-toggle--align-end').addEventListener('click', function() {
          [].forEach.call(document.querySelectorAll('.demo-checkbox-wrapper'), function(formField) {
            formField.classList.toggle('mdc-form-field--align-end');
          });
        });

        /*
         * Drawer
         */

        var drawerEl = document.querySelector('.mdc-drawer');
        var drawer = new mdc.drawer.MDCDrawer(drawerEl);

        [].forEach.call(document.querySelectorAll('.demo-drawer-toggle'), function(toggleElem) {
          toggleElem.addEventListener('click', function() {
            drawer.open = true;
          });
        });

        drawerEl.addEventListener('MDCDrawer:opened', function() {
          console.log('Received MDCDrawer:opened');
        });

        drawerEl.addEventListener('MDCDrawer:closed', function() {
          console.log('Received MDCDrawer:closed');
        });

        /*
         * FAB
         */

        [].forEach.call(document.querySelectorAll('.mdc-fab'), function(fab) {
          mdc.ripple.MDCRipple.attachTo(fab);
        });

        /*
         * Icon Button
         */

        [].forEach.call(document.querySelectorAll('[data-mdc-ripple-is-unbounded]'), function(iconButtonEl) {
          mdc.ripple.MDCRipple.attachTo(iconButtonEl);
        });

        /*
         * Icon Toggle
         */

        [].forEach.call(document.querySelectorAll('.mdc-icon-button[data-demo-toggle]'), function(iconButtonToggleEl) {
          mdc.iconButton.MDCIconButtonToggle.attachTo(iconButtonToggleEl);
        });

        /*
         * Linear Progress
         */

        [].forEach.call(document.querySelectorAll('.mdc-linear-progress'), function(progressEl) {
          var linearProgress = mdc.linearProgress.MDCLinearProgress.attachTo(progressEl);
          linearProgress.progress = 0.5;
          if (progressEl.dataset.buffer) {
            linearProgress.buffer = 0.75;
          }
        });

        /*
         * Radio
         */

        [].forEach.call(document.querySelectorAll('.demo-radio-form-field'), function(formField) {
          var formFieldInstance = new mdc.formField.MDCFormField(formField);
          var radio = formField.querySelector('.mdc-radio');
          if (radio) {
            formFieldInstance.input = new mdc.radio.MDCRadio(radio);
          }
        });

        /*
         * Select
         */

        [].forEach.call(document.querySelectorAll('.mdc-select:not(select)'), function(select) {
          mdc.select.MDCSelect.attachTo(select);
        });

        /*
         * Slider
         */

        [].forEach.call(document.querySelectorAll('.mdc-slider'), function(slider) {
          mdc.slider.MDCSlider.attachTo(slider);
        });

        /*
         * Switch
         */

        [].forEach.call(document.querySelectorAll('.mdc-switch'), function(switchEl) {
            mdc.switchControl.MDCSwitch.attachTo(switchEl);
        });

        /*
         * Tab Bar
         */

        // [].forEach.call(document.querySelectorAll('.mdc-tab-bar'), function(tabBar) {
        //   mdc.tabBar.MDCTabBar.attachTo(tabBar);
        // });

        /*
         * Text Field
         */

        [].forEach.call(document.querySelectorAll('.mdc-text-field'), function(textField) {
          mdc.textField.MDCTextField.attachTo(textField);
        });
      });
    </script>
  </body>
</html>
